package com.gobo.cmsservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gobo.cmsservice.pojo.CrmBanner;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gobo.cmsservice.pojo.vo.QueryBanner;

import java.util.List;

/**
 * <p>
 * 首页banner表 服务类
 * </p>
 *
 * @author gobo-generator
 * @since 2021-09-22
 */
public interface CrmBannerService extends IService<CrmBanner> {
    Boolean saveBanner(CrmBanner crmBanner);

    void getPageBanner(Page<CrmBanner> page, QueryBanner queryBanner);

    List<CrmBanner> getAllBanner();

    Boolean removeBanner(String bannerId);

    Boolean updateBanner(CrmBanner crmBanner);

    List<CrmBanner> getBanners(Long size);
}
